package com.itheima.day05.producer;


import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NewsProducer {

    @Autowired
    private RabbitTemplate rabbitTemplate;
    //TODO 定义方法 通过 "news." + news.getCategory() 动态生成路由键 并发送news对象

}